package com.example.adapter_sdk.quick;

import android.os.Bundle;
import android.widget.Button;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;


import java.util.ArrayList;
import java.util.List;

//@Route(path = "/aaa/BasicActivity")
public class BasicActivity extends AppCompatActivity {
    private RecyclerView recyclerView;
    private Button addBtn;
    private BasicAdapter adapter;
    private List<String> list = new ArrayList<>();

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_diff);
//        initView();
//        LinearLayoutManager layoutManager = new LinearLayoutManager(this);
//        layoutManager.setOrientation(RecyclerView.VERTICAL);
//        recyclerView.setLayoutManager(layoutManager);
//        initData();
//        adapter=new BasicAdapter();
//        recyclerView.setAdapter(adapter);
//        adapter.setNewInstance(list);

    }

    private void initData(){
        for (int i = 0; i < 20;i ++){
            list.add("item:"+i);
        }
    }

    private void initView() {
//        addBtn = findViewById(R.id.diff_update_btn);
//        recyclerView = findViewById(R.id.diff_rv);
    }
}
